<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>增加用户</title>
    <link rel="stylesheet" href="css_js/css/bootstrap.min.css" />
    <!-- <link rel="stylesheet" href="dist/css/pass.css" /> -->
    <link rel="stylesheet" href="dist/css/add_user.css" />
    <link rel="stylesheet" href="dist/css/common.css" />
    <link rel="stylesheet" href="dist/css/modInfo.css">
    <link rel="stylesheet" href="css_js/layui/css/layui.css" />
</head>
<body ng-app="App" ng-controller="modInfoCtrl">
<div class="bg_color">
    <nav class="navbar text-center">
        <div class="nav_body">
            <img ng-click="go_back()" class="pull-left btn_top_left" src="dist/images/point/left.png">
            <span class="tit_title">修改用户</span>
        </div>
    </nav>
    <div>
        <div class="addRoleForm">
            <div class="input-group">
                <span class="input-group-addon">用户账号</span>
                <input type="text" class="form-control" placeholder="用户账号" aria-describedby="basic-addon1" ng-model="info.id"
                     readonly>
            </div>
            <hr>
            <div class="input-group">
                <span class="input-group-addon">用户昵称</span>
                <input type="text" class="form-control" placeholder="用户昵称" aria-describedby="basic-addon1" ng-model="info.name" maxlength="30">
            </div>
            <hr>
            <div class="input-group">
                <span class="input-group-addon">用户电话</span>
                <input type="text" class="form-control" placeholder="用户电话" aria-describedby="basic-addon1" ng-model="info.tele" maxlength="11">
            </div>
            <hr>
            <div class="form-group">
                <label class="bold_label control-label col-xs-4">用户角色</label>
                <select ng-model="info.roleid" class="form-control">
                    <option value="0">无角色</option>
                    <option value="{{role.id}}" ng-repeat="role in roles">{{role.name}}</option>
                </select>
            </div>
            <hr>
            <div class="form-group">
                <label class="bold_label control-label col-xs-4">用户照片</label>
                <label>
                    <span>
                        <img id="usrPic" class="bg_user user_pic" src="dist/images/user/user_big.png" alt="" />
                    </span>
                    <span>
                        <input id="file" type="file" name="file" style="display: none"/>
                        <!-- <button onclick="getElementById('file').click()" class="user_btn pass_green">立即上传</button> -->
                    </span>

                </label>
            </div>
            <!-- <hr>
                    <div class="input-group">
                        <span class="input-group-addon" >项目描述</span>
                        <textarea class="form-control" rows="5" ng-model="addobj.des"></textarea> -->
            <!-- <input type="text" class="form-control" placeholder="角色描述" aria-describedby="basic-addon1" ng-model="roleDescription"> -->
            <!-- </div> -->
            <span class="errMsg" ng-show="errMsg">{{errMsg}}</span>
            <button type="button" id="myButton" data-loading-text="提交中.." class="btn btn-success" autocomplete="off" ng-click="sure_add()">
                修改
            </button>
        </div>
    </div>
</div>
<script src="css_js/js/jquery.min.js"></script>
<script src="css_js/js/angular.min.js"></script>
<script src="css_js/js/angular-cookies.min.js"></script>
<script src="css_js/js/bootstrap.min.js"></script>
<script src="dist/controller/config.js"></script>
<script src="dist/controller/modInfoCtrl.js"></script>
<script src="css_js/layui/layui.all.js"></script>
</body>
</html>